using UnityEngine;

namespace Framework
{
    public class MonoSingleton<T> : MonoBehaviour where T : MonoSingleton<T>
    {
        public static T Instance;

        public virtual void Awake()
        {
            Instance = (T) this;
        }
    }
}